Description: 计算机操作系统哲学家就餐问题的课程设计报告。无解压密码。-computer operating system dining philosophers problem of the design report. No extract passwords. Platform: |
Size: 88024 |
Author:an |
Hits:
Description: 哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。
假设有5个哲学家,他们花费一生中的时光思考和吃饭。这些哲学家共用一个圆桌,每个哲学家都有一把椅子。在桌子中央是一碗通心面,在桌子上放着5只筷子。(如图所示)当一个哲学家思考时,他与其他同事不交互。时而,哲学家会感到饥饿,并试图拿起与他相近的两只筷子(他与邻近左、右之间的筷子)。一个哲学家一次只能拿起一只筷子。显然,他不能从其他哲学家手里拿走筷子。当一个饥饿的哲学家同时有两只筷子时,他就不能不用释放他的筷子而自己吃了。当吃完后,他会放下两只筷子,并再次开始思考。
规定奇数号哲学家先拿他左边的筷子,然后再去拿右边的筷子;而偶数号哲学家则相反。按此规定,将是1、 2号哲学家竞争1号筷子;3、4号哲学家竞争3号筷子。即五位哲学家都先竞争奇数号筷子,获得后,再去竞争偶数号筷子,最后总会有一位哲学家能获得两只筷子而进餐。
-dining philosophers problem is the Netherlands scholars Dijkstra's one of the classic, It is a signal to the mechanism of application, the operating system in the history of culture has a very important position. Analysis of the problem to help students understand deeply the computer system resource sharing, process synchronization, and other issues Deadlock, skilled and can be applied to solve the signal volume life of the control flow, about the life of the control flow with the formal expression. Assuming a five philosophers, they spend a lifetime of thought and time to eat. These philosophers sharing a round-table, each have a chair philosopher. The table is a bowl of the Central Link hearts, placed on the table five chopsticks. (As shown) as a philosopher to think that he and othe Platform: |
Size: 84894 |
Author:nicmaters |
Hits:
Description: 哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。
假设有5个哲学家,他们花费一生中的时光思考和吃饭。这些哲学家共用一个圆桌,每个哲学家都有一把椅子。在桌子中央是一碗通心面,在桌子上放着5只筷子。(如图所示)当一个哲学家思考时,他与其他同事不交互。时而,哲学家会感到饥饿,并试图拿起与他相近的两只筷子(他与邻近左、右之间的筷子)。一个哲学家一次只能拿起一只筷子。显然,他不能从其他哲学家手里拿走筷子。当一个饥饿的哲学家同时有两只筷子时,他就不能不用释放他的筷子而自己吃了。当吃完后,他会放下两只筷子,并再次开始思考。
规定奇数号哲学家先拿他左边的筷子,然后再去拿右边的筷子;而偶数号哲学家则相反。按此规定,将是1、 2号哲学家竞争1号筷子;3、4号哲学家竞争3号筷子。即五位哲学家都先竞争奇数号筷子,获得后,再去竞争偶数号筷子,最后总会有一位哲学家能获得两只筷子而进餐。
-dining philosophers problem is the Netherlands scholars Dijkstra's one of the classic, It is a signal to the mechanism of application, the operating system in the history of culture has a very important position. Analysis of the problem to help students understand deeply the computer system resource sharing, process synchronization, and other issues Deadlock, skilled and can be applied to solve the signal volume life of the control flow, about the life of the control flow with the formal expression. Assuming a five philosophers, they spend a lifetime of thought and time to eat. These philosophers sharing a round-table, each have a chair philosopher. The table is a bowl of the Central Link hearts, placed on the table five chopsticks. (As shown) as a philosopher to think that he and othe Platform: |
Size: 90645 |
Author:nicmaters |
Hits:
Description: 在Linux环境下,使用共享外部变量的方式,实现哲学家进餐问题-the Linux environment, the use of shared external variables, to achieve the Dining Philosophers Problem Platform: |
Size: 4903 |
Author:weixiang |
Hits:
Description: 计算机仿真的实验,用三种方法模拟了哲学家进餐的过程,图形化的显示过程,用VC++.net开发的-computer simulation experiments, using three methods to simulate the process of the Dining Philosophers, graphical display of the process, with VC. Net development Platform: |
Size: 548411 |
Author:卫民 |
Hits:
Description: 本程序是操作系统中比较典型的线程同步算法中的哲学家进餐问题,为防止死锁,采取了两个条件(筷子空闲)同时满足时再允许进餐的办法来解决。期望与大家一起学习交流!-the procedure is fairly typical operating system threads synchronization algorithm of the Dining Philosophers, in order to prevent deadlock and take the two conditions (chopsticks idle) meet again allowed to dine at the solutions. We look forward to learning together with the exchange! Platform: |
Size: 525138 |
Author:zbing0203 |
Hits:
Description: 哲学家进餐算法 一定要成为vip会员,十万火急 站长请通融一下,-algorithm dining philosophers must become the vip members Most Urgent station please bend, thank you Platform: |
Size: 1049 |
Author:hw |
Hits:
Description: 它是一个经典的算法-哲学家进餐问题,用VC++实现,通过它大家可以掌握Windows中的多线程编程-It is a classic algorithm-the Dining Philosophers, VC + +, through which we can grasp the Windows multi-threaded programming Platform: |
Size: 65524 |
Author:吴义军 |
Hits: